import { Navigate } from "react-router-dom"
import Debug from "../debug/index.jsx"
import Merchant from '../ljy/merchant.jsx'
import Reservation from '../ljy/reservation.jsx'
import Order from '../ljy/order.jsx'
import My from "../xmh/index.jsx"
import Service from "../ljl/service/service.jsx"
import Clear from "../ljl/service/clear.jsx"
import Car from "../ljl/service/car.jsx"
import Add from "../ljl/service/add.jsx"
import Register from "../ljl/register/register.jsx"
import RegisterPhone from "../ljl/register/registerPhone.jsx"
import Smart from '../hjc/smart.jsx'
import Daizhifu from '../xmh/Daizhifu.jsx'
import Dairuzhu from '../xmh/Dairuzhu.jsx'
import Ruzhuzhong from '../xmh/Ruzhuzhong.jsx'
import Yituifang from '../xmh/Yituifang.jsx'
import TotalMenu from '../xmh/TotalMenu.jsx'
import Payment from '../hjc/payment.jsx'
import Food from '../food/food.jsx'
import Travel from '../hjc/travel.jsx'
import Pick from "../debug/pick/pick.jsx"
import Tabber from "../debug/tabber/tabber.jsx"
import First from "../debug/tabber/first/first.jsx"
import Strategy from "../debug/tabber/strategy/strategy.jsx"
import Shopping from "../debug/tabber/shopping/shopping.jsx"
import NotFount from "../debug/NotFount/NotFount.jsx"
import Baggage from "../debug/baggage/baggage.jsx"
import Reverse from "../debug/reverse/reverse.jsx"
import Ke from '../hjc/ke.jsx'
import Login from '../lyx/login.jsx'
import Ss from '../lyx/SliderPuzzleVerification.jsx'

import Hotel from '../debug/hotel/hotel.jsx'

import Orderlzw from '../food/order.jsx'
import Zfb from '../food/zfb.jsx'
import Vip from '../lzwvip/vipcard.jsx'
import AddPerson from '../lyx/AddPerson.jsx'

import Extension from '../hjc/Extension.jsx'

import Consign from "../debug/consign/consign.jsx"
const routes = [

    {
        path: "/debug",
        element: <Debug></Debug>
    },
    {
        path: "/tabber",
        element: <Tabber></Tabber>,
        children: [
            {
                path: "first",
                element: <First></First>,
            },
            {
                path: "shopping",
                element: <Shopping></Shopping>,
            },
            {
                path: "strategy",
                element: <Strategy></Strategy>,
            },
            {
                path: "my",
                element: <My></My>,
            },
        ]
    },
    {
        path: "/reverse",
        element: <Reverse></Reverse>
    },
    {
        path: "/service",
        element: <Service></Service>
    },
    {
        path: "/clear",
        element: <Clear></Clear>
    },
    {
        path: "/car",
        element: <Car></Car>
    },
    {
        path: "/add",
        element: <Add></Add>
    },
    {
        path: "/register",
        element: <Register></Register>
    },
    {
        path: "registerPhone",
        element: <RegisterPhone></RegisterPhone>
    },

    {
        path: "/food",
        element: <Food></Food>
    },
    {
        path: "/pick",
        element: <Pick></Pick>
    },
    //行李寄存
    {
        path: "/baggage",
        element: <Baggage></Baggage>
    },
    //重定向
    {
        path: "/",
        element: <Navigate to="/tabber/first" ></Navigate>
    },
    //找不到
    {
        path: "*",
        element: <NotFount></NotFount>
    },
    {
        path: "/Travel",
        element: <Travel></Travel>
    },
    {
        path: "/service",
        element: <Service></Service>
    },
    {
        path: "/clear",
        element: <Clear></Clear>
    },
    {
        path: "/car",
        element: <Car></Car>
    },
    {
        path: "/add",
        element: <Add></Add>
    },
    {
        path: "/register",
        element: <Register></Register>
    },
    {
        path: "/smart",
        element: <Smart></Smart >
    },
    {
        path: "/Ke",
        element: <Ke></Ke >
    },
    {
        path: "/Extension",
        element: <Extension></Extension >
    },
    {
        path: '/login',
        element: <Login></Login>
    },
    {
        path: '/slider',
        element: <Ss></Ss>
    },
    {
        path: "/Daizhifu",
        element: <Daizhifu></Daizhifu>
    },
    {
        path: "/Dairuzhu",
        element: <Dairuzhu></Dairuzhu>
    },
    {
        path: "/Ruzhuzhong",
        element: <Ruzhuzhong></Ruzhuzhong>
    },
    {
        path: "/Yituifang",
        element: <Yituifang></Yituifang>
    },
    {
        path: "/TotalMenu",
        element: <TotalMenu></TotalMenu>
    },
    {
        path: "/hotel",
        element: <Hotel></Hotel>
    },
    {
        path: "/merchant",
        element: <Merchant></Merchant>
    },
    {
        path: "/reservation",
        element: <Reservation></Reservation>
    },
    {
        path: "/order",
        element: <Order></Order>
    },
    {
        path: "/food",
        element: <Food></Food>
    },
    {
        path: "/lzworder",
        element: <Orderlzw></Orderlzw>
    },
    {
        path: '/zfb',
        element: <Zfb></Zfb>
    },
    {
        path: '/vip',
        element: <Vip></Vip>
    },
    {
        path: "/payment",
        element: <Payment></Payment>
    },
    {

        path: "/consign",
        element: <Consign></Consign>
    },
    {
        path: "/addPerson",
        element: <AddPerson></AddPerson>
    }
]

export default routes